From ef3a722f62b0814b210502f776a46968a309c0d0 Mon Sep 17 00:00:00 2001 From: "smh22@firebug.cl.cam.ac.uk" Date: Sat, 5 Nov 2005 10:54:12 +0100 Subject: [PATCH] Check correct flag in grant transfer - this eliminates the most common source of 'zombie-' domains. Signed-off-by: Steven Hand --- xen/common/grant_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index 695caa17a5..d9e64d3d56 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -781,7 +781,7 @@ gnttab_transfer( * headroom. Also, a domain mustn't have PGC_allocated * pages when it is dying. */ - if ( unlikely(test_bit(DOMFLAGS_DYING, &e->domain_flags)) || + if ( unlikely(test_bit(_DOMF_dying, &e->domain_flags)) || unlikely(e->tot_pages >= e->max_pages) || unlikely(!gnttab_prepare_for_transfer(e, d, gop->ref)) ) { -- 2.30.2